import random


alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']

listenom= ["gabriel","boris","romain","jeremie","babar"]

def lettre_au_hasard():
    r = random.randint(0,25)
    print alphabet[r]
    return alphabet[r]

def noms(lettre):
    tab=[]
    for i in listenom:
        if i[0] == lettre:
            tab.append(i)
    return tab

def affiche(tab):
    if len(tab)==0:
        print "Il n'y a pas de noms"
    else:
        print "il y a "+str(len(tab))+" noms"
        print tab
